ci: harden portable Ruby native gem builds#45
Conversation
|
PR author is in the excluded authors list. |
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughUpdate CI workflows: change the Homebrew action pin in the tests workflow; write SETUP_RUBY_VERSION to GITHUB_ENV with quoting; export brew bin/sbin to GITHUB_PATH, evaluate ChangesCI & packaging updates
Sequence Diagram(s)sequenceDiagram
participant TestsYml as .github/workflows/tests.yml
participant BuildYml as .github/workflows/build.yml
participant GITHUB_PATH
participant brew as brew
participant Tap as jdx/ruby tap
TestsYml->>BuildYml: CI workflow steps (syntax vs build)
BuildYml->>GITHUB_PATH: add ${brew_prefix}/bin and ${brew_prefix}/sbin
BuildYml->>brew: eval "$(${brew_prefix}/bin/brew shellenv)"
BuildYml->>Tap: run `brew trust jdx/ruby`
BuildYml->>brew: run brew install (bottled deps / build bottles) with `--skip-post-install`
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/tests.yml:
- Line 21: Update the pinned GitHub Action ref for
Homebrew/actions/setup-homebrew: verify that the SHA
caddd704cd8c1cbb45f9f3dfbd1f77d1f81e97f0 actually exists in the Homebrew/actions
repo and is reachable from main; if not, replace it with the correct full commit
SHA (or the tag/branch you intend, e.g., main) and ensure the previous reference
2ebcf16 is also a real full SHA if retained; finally, update or remove the
trailing "# main" comment so it accurately reflects whether the pinned SHA is on
the main branch (or remove the comment to avoid misleading callers).
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 840ff9af-6797-4ffa-898a-7afead196aed
📒 Files selected for processing (1)
.github/workflows/tests.yml
34b3a7f to
e9fe157
Compare
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. |
Summary
This PR started as a Renovate update for the
Homebrew/actionsdigest, but the CI fallout exposed issues in the portable Ruby packaging path for native gems.It now also:
glibc/linux-headersflags from packagedrbconfig.rbcc/c++instead of Homebrew build-time compiler pathspkgconfigpath and native build flags so gems can find bundled libraries such asopensslandlibyamlopensslandpsychnative-gem rebuild smoke tests enabled so mise users remain covered forgem install opensslandgem install psychValidation
ruby -con the touched Ruby filesgit diff --checkactionlintOriginal Renovate Update
Homebrew/actions:2ebcf16->1141dcc